// page/index/detail.js
var app = getApp();
Page({

	/**
	 * 页面的初始数据
	 */
	data: {
		info: []
	},

	/**
	 * 生命周期函数--监听页面加载
	 */
	onLoad: function(options) {
		console.log("onLoad");
		console.log(options);

		//发送请求获取数据
		var that = this;
		app.request('/index/detail', 
			{id: options.brand_id}, 
			function(data, ret) {
			console.log(data);
			that.setData({
				info: data.info,
			});
		}, function(data, ret) {
			that.error(ret.msg);
		});
	},

})
